<%@ tag import="org.kunteng.yunac.modules.sys.utils.UserUtils" %>
<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

    <div class="navbar-header inline-block">
         <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        </button>
        <!-- <a class="sidebar-toggle hidden-xs" href="javascript:void(0);"><i class="fa fa-bars fa-2x"></i></a> -->
        <%--<a class="navbar-brand" href="index.html"><img src="${ctxStatic}/img/yunac2.png" alt="kunteng"></a>--%>
        <% String _logo = UserUtils.getUserInheritLogo(UserUtils.getUser()); %>
        <a class="navbar-brand" href="index.html"><img width="140" height="50" src="${ctxroot}<%= _logo == null ? "/static/img/yunac2.png" : _logo%>" alt="kunteng"></a>
    </div>
    <!-- /.navbar-header -->

    <ul class="nav navbar-top-links navbar-right inline-block pull-right">
    <!-- /.dropdown -->
        <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
        <% String _avatar = UserUtils.getUserInheritAvatar(UserUtils.getUser()); %>
        <img src="${ctxroot}<%= _avatar == null? "/static/img/user.png" : _avatar%>" width="40">
            <%=UserUtils.getUser().getAccount()%> <i class="fa fa-caret-down"></i>
        </a>
        <ul class="dropdown-menu dropdown-user">
            <li><a href="${ctx}/sys/user/profile" class="nav-btn" data-nav="profile"><i class="fa fa-user fa-fw"></i> 个人中心</a>
        </li>
            <li><a href="javascript:;" data-modal-title="修改密码" data-modal-height="288" data-modal-url="${ctx}/sys/user/passwd"><i class="fa fa-gear fa-fw"></i> 修改密码</a>
            </li>
            <li><a href="${ctx}/logout"><i class="fa fa-sign-out fa-fw"></i> 退出登录</a>
            </li>
        </ul>
        <!-- /.dropdown-user -->
        </li>
    <!-- /.dropdown -->
    </ul>

<!-- jQuery Version 1.11.0 -->
<script src="${ctxStatic}/js/jquery-1.11.0.js"></script>
<script src="${ctxStatic}/js/plugins/layer/layer.js"></script>
